import request from '@/utils/request'

// 查询代运营服务商抽佣列表
export function listWithholdWithhold(query) {
  return request({
    url: '/ecs/withholdingWithhold/list',
    method: 'get',
    params: query
  })
}

// 查询代运营服务商抽佣详细
export function getWithholdWithhold(id) {
  return request({
    url: '/ecs/withholdingWithhold/' + id,
    method: 'get'
  })
}

// 新增代运营服务商抽佣
export function addWithholdWithhold(data) {
  return request({
    url: '/ecs/withholdingWithhold',
    method: 'post',
    data: data
  })
}

// 修改代运营服务商抽佣
export function updateWithholdWithhold(data) {
  return request({
    url: '/ecs/withholdingWithhold',
    method: 'put',
    data: data
  })
}

// 删除代运营服务商抽佣
export function delWithholdWithhold(id) {
  return request({
    url: '/ecs/withholdingWithhold/' + id,
    method: 'delete'
  })
}

// 删除代运营服务商抽佣
export function updateWithholdingWithholdStatus(id) {
  return request({
    url: '/ecs/withholdingWithhold/updateWithholdingWithholdStatus/' + id,
    method: 'put'
  })
}
// 发起抽佣
export function yeePayWithholdingWithhold(id) {
  return request({
    url: '/ecs/withholdingWithhold/yeePayWithholdingWithhold/' + id,
    method: 'put'
  })
}

